<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>

.box{
	width: 200px;
	height: 200px;
	background-color:pink;
}

	</style>
</head>
<body>
	<input type="button" value="隐藏/显示">
	<div class="box">
我是盒子
	</div>
</body>
<script src="../jquery-1.12.4.js"></script>
<script>

$("input").on("click",function(){
	$(".box").toggle();
})

</script>
</html>